using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string url = "";
            url = "username=" + textBox1.Text;
            url = url + "&password=" + textBox2.Text;
            url = url + "&mobile=" + textBox3.Text;
            url = url + "&message=" + richTextBox1.Text;
            WebClient wc = new WebClient();
            Stream st = wc.OpenRead("http://api.twsms.com/json/sms_send.php?" + url);
            StreamReader sr = new StreamReader(st);
            string resp = sr.ReadToEnd();
            sr.Close();
            st.Close();
            MessageBox.Show("oeG" + resp);
        }
    }
}
